﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/Site.master" AutoEventWireup="false"
    ValidateRequest="false" CodeFile="Login.aspx.vb" Inherits="Account_Login1" %>

<%@ Register Src="../Controls/Recaptcha.ascx" TagName="Recaptcha" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        .style1
        {
            color: #FFFFFF;
            text-align: center;
        }
        
        .style2
        {
            width: 230px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <table style="text-align: center">
        <tr>
            <td align="center" valign="top">
                <table>
                    <tr>
                        <td>
                            <asp:Image ID="Image1" runat="server" ImageUrl="~/i/iStock__1XSmall.jpg" />
                        </td>
                    </tr>
                    <tr>
                        <td style="background-color: #33CCCC">
                            <center>
                                <br />
                                <span class="style1"><strong>Build longer-lasting
                                    <br />
                                    relationships with your existing customers</strong><br />
                                </span>
                                <br />
                            </center>
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;
            </td>
            <td valign="top">
                <p>
                    Please log in with your UserName/Password or <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false"> Sign Up </asp:HyperLink>for
                    an account if you don't already have one.
                </p>                                  
                  <asp:Label ID="lblCookiesError" runat="server" ForeColor="Red" Text="Please enable cookies in your browser in order to log in" Visible="False"></asp:Label>

                <asp:Login ID="Login1" runat="server" PasswordRecoveryText="Forgot your password ?"
                    PasswordRecoveryUrl="~/Account/LostPassword.aspx" DestinationPageUrl="~/private/default.aspx"
                    Width="216px">
                    <LayoutTemplate>
                        <table cellpadding="1" cellspacing="0" style="border-collapse: collapse;">
                            <tr>
                                <td class="style2">
                                    <table cellpadding="0">
                                        <tr>
                                            <td align="center" colspan="2">
                                                Log In
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="UserName" runat="server" Width="177px"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                                    ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermark_UserName" runat="server" TargetControlID="UserName"
                                                    WatermarkText="your userName" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="left">
                                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                                            </td>
                                            <td align="left">
                                                <asp:TextBox ID="Password" runat="server"  Width="177px" TextMode="Password"></asp:TextBox>
                                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                                    ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                                <asp:TextBoxWatermarkExtender ID="TextBoxWatermark_Password" runat="server" TargetControlID="Password"
                                                    WatermarkText="your password" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <asp:CheckBox ID="RememberMe" runat="server" Text="Remember me next time." />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                <uc1:Recaptcha ID="Recaptcha1" runat="server" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center" colspan="2" style="color: Red;">
                                                <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="2">
                                                <asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="~/Account/LostPassword.aspx">Forgotten Password?</asp:HyperLink>
                                                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="Login1" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                </asp:Login>
                <asp:Label ID="lblResult" runat="server" Text=""></asp:Label>
                <!--<asp:Label ID="Label1" runat="server" Text=""></asp:Label>-->
            </td>
        </tr>
    </table>
    <asp:Panel ID="pnlEmailNotVerified" runat="server" Style="display: none" CssClass="modalPopup">
        <h2>
            Your Account Needs Attention</h2>
        <p>
            Hello<br />
            <p>
                Our system shows that you have not yet confirmed your email address.
                <br />
                This is a requirement to help prevent misuse of your account by a 3rd party.
                <br />
                To continue, please go to your inbox now and click the link in the email we previously
                sent you at your registered address.
                <br />
                By confirming your email you will be able to use the full features of this site.
                Please close this box to proceed.
            </p>
            <p>
                <asp:Button ID="Button1" runat="server" Text="Continue..." />
            </p>
    </asp:Panel>
    <asp:Button ID="btnEmailNotVerified" runat="server" Text="Button" Style="display: none;" />
    <asp:ModalPopupExtender ID="pnlEmailNotVerified_ModalPopupExtender" runat="server"
        PopupControlID="pnlEmailNotVerified" DynamicServicePath="" Enabled="True" TargetControlID="btnEmailNotVerified"
        BackgroundCssClass="modalBackground" DropShadow="true">
    </asp:ModalPopupExtender>
    <asp:Panel ID="pnlDisabledByAdmin" runat="server" Style="display: none" CssClass="modalPopup">
        <h2>
            Your account is not/no longer active.</h2>
        <p>
            Sorry! You attempted to log in but your account (or that of your sponsor if you're
            an Associate) is not active.<br />
            <br />
            If it is inactive in error please <a href="~/contactus.aspx">contact us</a> to get
            it sorted.<br />
            If you purposely deactivated it and now want to have it reactivated also please
            <a href="~/contactus.aspx">contact us</a> to get it sorted. Please close this box
            to proceed.
        </p>
        <p>
            <asp:Button ID="Button2" runat="server" Text="Continue..." />
        </p>
        Site Administrator
    </asp:Panel>
    <asp:Button ID="btnDisabledByAdmin" runat="server" Text="Button" Style="display: none;" />
    <asp:ModalPopupExtender ID="DisabledByAdminModalPopupExtender" runat="server" PopupControlID="pnlDisabledByAdmin"
        DynamicServicePath="" Enabled="True" TargetControlID="btnDisabledByAdmin" BackgroundCssClass="modalBackground"
        DropShadow="true">
    </asp:ModalPopupExtender>
</asp:Content>
